package com.yangwp.jie.common.enums;

public enum  RetCodeEnum {
    SUCCESS(0, "成功"),
    MISSING_PARAM(100, "缺少参数"),
    PARAM_ERROR(101, "参数错误"),
    SERVER_FAIL(500, "服务器错误");

    private Integer code;
    private String desc;

    RetCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
